

package cn.com.pusai.common.service;

import cn.com.pusai.common.util.SearchMap;
import cn.com.pusai.core.exception.ServiceException;
import cn.com.pusai.core.page.PageResult;
import java.io.Serializable;
import java.util.List;

public interface BaseService
{

	public abstract Object findObjectById(Serializable serializable)
		throws ServiceException;

	public abstract Object findObjectById(Serializable serializable, Class class1)
		throws ServiceException;

	public abstract void delete(Object obj)
		throws ServiceException;

	public abstract void delete(Serializable serializable)
		throws ServiceException;

	public abstract void delete(Serializable serializable, Class class1)
		throws ServiceException;

	public abstract void delete(Serializable aserializable[])
		throws ServiceException;

	public abstract void delete(Serializable aserializable[], Class class1)
		throws ServiceException;

	public abstract void update(Object obj)
		throws ServiceException;

	public abstract void updateObjectProperty(Serializable serializable, String s, Object obj, Class class1)
		throws ServiceException;

	public abstract void updateObjectProperty(Serializable aserializable[], String s, Object obj, Class class1)
		throws ServiceException;

	public abstract void updateObjectProperty(Serializable serializable, String as[], Object aobj[], Class class1)
		throws ServiceException;

	public abstract void updateObjectProperty(Serializable aserializable[], String as[], Object aobj[], Class class1)
		throws ServiceException;

	public abstract void create(Object obj)
		throws ServiceException;

	public abstract List findObjects(SearchMap searchmap)
		throws ServiceException;

	public abstract List findObjects(SearchMap searchmap, Class class1)
		throws ServiceException;

	public abstract PageResult findObjectsForPage(int i, int j, SearchMap searchmap)
		throws ServiceException;

	public abstract PageResult findObjectsForPage(int i, int j, SearchMap searchmap, Class class1)
		throws ServiceException;

	public abstract boolean isExist(Serializable serializable, String s, String s1, Class class1)
		throws ServiceException;

	public abstract boolean isExistAnd(Serializable serializable, String as[], String as1[], Class class1)
		throws ServiceException;

	public abstract List isExistOr(Serializable serializable, String as[], String as1[], Class class1)
		throws ServiceException;
}
